home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / Editions.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  17.8 KB  |  621 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Editions.a
  3. ;
  4. ;    Contains:    Edition Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__EDITIONS__') = 'UNDEFINED' THEN
  18. __EDITIONS__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  24.     include 'MixedMode.a'
  25.     ENDIF
  26.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  27.     include 'Files.a'
  28.     ENDIF
  29.     IF &TYPE('__ALIASES__') = 'UNDEFINED' THEN
  30.     include 'Aliases.a'
  31.     ENDIF
  32.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  33.     include 'Dialogs.a'
  34.     ENDIF
  35.  
  36.  
  37.                                                             ; resource types  
  38. rSectionType                    EQU        'sect'                ; ResType of saved SectionRecords 
  39.                                                             ; Finder types for edition files 
  40. kPICTEditionFileType            EQU        'edtp'
  41. kTEXTEditionFileType            EQU        'edtt'
  42. ksndEditionFileType                EQU        'edts'
  43. kUnknownEditionFileType            EQU        'edtu'
  44. kPublisherDocAliasFormat        EQU        'alis'
  45. kPreviewFormat                    EQU        'prvw'
  46. kFormatListFormat                EQU        'fmts'
  47.  
  48.                                                             ; section types 
  49. stSubscriber                    EQU        $01
  50. stPublisher                        EQU        $0A
  51.  
  52. sumAutomatic                    EQU        0                    ; subscriber update mode - Automatically     
  53. sumManual                        EQU        1                    ; subscriber update mode - Manually 
  54. pumOnSave                        EQU        0                    ; publisher update mode - OnSave            
  55. pumManual                        EQU        1                    ; publisher update mode - Manually 
  56.  
  57. kPartsNotUsed                    EQU        0
  58. kPartNumberUnknown                EQU        -1
  59.  
  60. kPreviewWidth                    EQU        120
  61. kPreviewHeight                    EQU        120
  62.  
  63.                                                             ; bits for formatsMask 
  64. kPICTformatMask                    EQU        1
  65. kTEXTformatMask                    EQU        2
  66. ksndFormatMask                    EQU        4
  67.  
  68.  
  69.                                                             ; pseudo-item hits for dialogHooks the first is for NewPublisher or NewSubscriber Dialogs 
  70. emHookRedrawPreview                EQU        150                    ; the following are for SectionOptions Dialog 
  71. emHookCancelSection                EQU        160
  72. emHookGoToPublisher                EQU        161
  73. emHookGetEditionNow                EQU        162
  74. emHookSendEditionNow            EQU        162
  75. emHookManualUpdateMode            EQU        163
  76. emHookAutoUpdateMode            EQU        164
  77.  
  78.  
  79.                                                             ; the refcon field of the dialog record during a modalfilter or dialoghook contains one the following 
  80. emOptionsDialogRefCon            EQU        'optn'
  81. emCancelSectionDialogRefCon        EQU        'cncl'
  82. emGoToPubErrDialogRefCon        EQU        'gerr'
  83.  
  84. kFormatLengthUnknown            EQU        -1
  85. ;  one byte, stSubscriber or stPublisher 
  86. ; typedef SignedByte                     SectionType
  87.  
  88. ;  seconds since 1904 
  89. ; typedef unsigned long                 TimeStamp
  90.  
  91. ;  similar to ResType 
  92. ; typedef FourCharCode                     FormatType
  93.  
  94. ;  used in Edition I/O 
  95. ; typedef Handle                         EditionRefNum
  96.  
  97. ;  update modes 
  98. ;  sumAutomatic, pumSuspend, etc 
  99. ; typedef short                         UpdateMode
  100.  
  101.  
  102.  
  103. ; typedef SectionRecord *                SectionPtr
  104.  
  105. ; typedef SectionPtr *                    SectionHandle
  106.  
  107. SectionRecord            RECORD 0
  108. version                     ds.b    1                ; offset: $0 (0)        ;  always 0x01 in system 7.0 
  109. kind                     ds.b    1                ; offset: $1 (1)        ;  stSubscriber or stPublisher 
  110. mode                     ds.w    1                ; offset: $2 (2)        ;  auto or manual 
  111. mdDate                     ds.l    1                ; offset: $4 (4)        ;  last change in document 
  112. sectionID                 ds.l    1                ; offset: $8 (8)        ;  app. specific, unique per document 
  113. refCon                     ds.l    1                ; offset: $C (12)        ;  application specific 
  114. alias                     ds.l    1                ; offset: $10 (16)        ;  handle to Alias Record 
  115. subPart                     ds.l    1                ; offset: $14 (20)        ;  which part of container file 
  116. nextSection                 ds.l    1                ; offset: $18 (24)        ;  for linked list of app's Sections 
  117. controlBlock             ds.l    1                ; offset: $1C (28)        ;  used internally 
  118. refNum                     ds.l    1                ; offset: $20 (32)        ;  used internally 
  119. sizeof                     EQU *                    ; size:   $24 (36)
  120.                         ENDR
  121. EditionContainerSpec    RECORD 0
  122. theFile                     ds        FSSpec            ; offset: $0 (0)
  123. theFileScript             ds.w    1                ; offset: $46 (70)
  124. thePart                     ds.l    1                ; offset: $48 (72)
  125. thePartName                 ds        Str31            ; offset: $4C (76)
  126. thePartScript             ds.w    1                ; offset: $6C (108)
  127. sizeof                     EQU *                    ; size:   $6E (110)
  128.                         ENDR
  129. ; typedef struct EditionContainerSpec *    EditionContainerSpecPtr
  130.  
  131. EditionInfoRecord        RECORD 0
  132. crDate                     ds.l    1                ; offset: $0 (0)        ;  date EditionContainer was created 
  133. mdDate                     ds.l    1                ; offset: $4 (4)        ;  date of last change 
  134. fdCreator                 ds.l    1                ; offset: $8 (8)        ;  file creator 
  135. fdType                     ds.l    1                ; offset: $C (12)        ;  file type 
  136. container                 ds        EditionContainerSpec ; offset: $10 (16) ;  the Edition 
  137. sizeof                     EQU *                    ; size:   $7E (126)
  138.                         ENDR
  139. NewPublisherReply        RECORD 0
  140. canceled                 ds.b    1                ; offset: $0 (0)        ;  O 
  141. replacing                 ds.b    1                ; offset: $1 (1)
  142. usePart                     ds.b    1                ; offset: $2 (2)        ;  I 
  143. filler                     ds.b    1                ; offset: $3 (3)
  144. preview                     ds.l    1                ; offset: $4 (4)        ;  I 
  145. previewFormat             ds.l    1                ; offset: $8 (8)        ;  I 
  146. container                 ds        EditionContainerSpec ; offset: $C (12) ;  I/O 
  147. sizeof                     EQU *                    ; size:   $7A (122)
  148.                         ENDR
  149. NewSubscriberReply        RECORD 0
  150. canceled                 ds.b    1                ; offset: $0 (0)        ;  O 
  151. formatsMask                 ds.b    1                ; offset: $1 (1)
  152. container                 ds        EditionContainerSpec ; offset: $2 (2)    ; I/O
  153. sizeof                     EQU *                    ; size:   $70 (112)
  154.                         ENDR
  155. SectionOptionsReply        RECORD 0
  156. canceled                 ds.b    1                ; offset: $0 (0)        ;  O 
  157. changed                     ds.b    1                ; offset: $1 (1)        ;  O 
  158. sectionH                 ds.l    1                ; offset: $2 (2)        ;  I 
  159. action                     ds.l    1                ; offset: $6 (6)        ;  O 
  160. sizeof                     EQU *                    ; size:   $A (10)
  161.                         ENDR
  162.  
  163. ioHasFormat                        EQU        0
  164. ioReadFormat                    EQU        1
  165. ioNewFormat                        EQU        2
  166. ioWriteFormat                    EQU        3
  167. ; typedef SignedByte                     FormatIOVerb
  168.  
  169.  
  170. eoOpen                            EQU        0
  171. eoClose                            EQU        1
  172. eoOpenNew                        EQU        2
  173. eoCloseNew                        EQU        3
  174. eoCanSubscribe                    EQU        4
  175. ; typedef SignedByte                     EditionOpenerVerb
  176.  
  177. FormatIOParamBlock        RECORD 0
  178. ioRefNum                 ds.l    1                ; offset: $0 (0)
  179. format                     ds.l    1                ; offset: $4 (4)
  180. formatIndex                 ds.l    1                ; offset: $8 (8)
  181. offset                     ds.l    1                ; offset: $C (12)
  182. buffPtr                     ds.l    1                ; offset: $10 (16)
  183. buffLen                     ds.l    1                ; offset: $14 (20)
  184. sizeof                     EQU *                    ; size:   $18 (24)
  185.                         ENDR
  186.  
  187.  
  188. EditionOpenerParamBlock    RECORD 0
  189. info                     ds        EditionInfoRecord ; offset: $0 (0)
  190. sectionH                 ds.l    1                ; offset: $7E (126)
  191. document                 ds.l    1                ; offset: $82 (130)
  192. fdCreator                 ds.l    1                ; offset: $86 (134)
  193. ioRefNum                 ds.l    1                ; offset: $8A (138)
  194. ioProc                     ds.l    1                ; offset: $8E (142)
  195. success                     ds.b    1                ; offset: $92 (146)
  196. formatsMask                 ds.b    1                ; offset: $93 (147)
  197. sizeof                     EQU *                    ; size:   $94 (148)
  198.                         ENDR
  199. ;  
  200. ; Section events now arrive in the message buffer using the AppleEvent format.
  201. ; The direct object parameter is an aeTemporaryIDParamType ('tid '). The temporary
  202. ; ID's type is rSectionType ('sect') and the 32-bit value is a SectionHandle.
  203. ; The following is a sample buffer
  204. ; name       offset     contents
  205. ; ----       ------     --------
  206. ; header           0      'aevt'
  207. ; majorVersion     4      0x01
  208. ; minorVersion     6      0x01
  209. ; endOfMetaData     8      ';;;;' 
  210. ; directObjKey     12  '----' 
  211. ; paramType      16  'tid ' 
  212. ; paramLength      20  0x0008 
  213. ; tempIDType      24  'sect' 
  214. ; tempID            28  the SectionHandle <-- this is want you want
  215. ;
  216.  
  217.  
  218.  
  219. sectionEventMsgClass            EQU        'sect'
  220. sectionReadMsgID                EQU        'read'
  221. sectionWriteMsgID                EQU        'writ'
  222. sectionScrollMsgID                EQU        'scrl'
  223. sectionCancelMsgID                EQU        'cncl'
  224.  
  225. currentEditionMgrVers            EQU        $0011
  226.  
  227.  
  228. ;
  229. ; pascal OSErr InitEditionPackVersion(short curEditionMgrVers)
  230. ;
  231.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  232.         Macro
  233.         _InitEditionPackVersion
  234.             move.w              #$0100,D0
  235.             dc.w                $A82D
  236.         EndM
  237.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  238.         IMPORT_CFM_FUNCTION InitEditionPackVersion
  239.     ENDIF
  240.  
  241. ;
  242. ; pascal OSErr NewSection(const EditionContainerSpec *container, ConstFSSpecPtr sectionDocument, SectionType kind, long sectionID, UpdateMode initalMode, SectionHandle *sectionH)
  243. ;
  244.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  245.         Macro
  246.         _NewSection
  247.             move.w              #$0A02,D0
  248.             dc.w                $A82D
  249.         EndM
  250.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  251.         IMPORT_CFM_FUNCTION NewSection
  252.     ENDIF
  253.  
  254. ;
  255. ; pascal OSErr RegisterSection(const FSSpec *sectionDocument, SectionHandle sectionH, Boolean *aliasWasUpdated)
  256. ;
  257.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  258.         Macro
  259.         _RegisterSection
  260.             move.w              #$0604,D0
  261.             dc.w                $A82D
  262.         EndM
  263.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  264.         IMPORT_CFM_FUNCTION RegisterSection
  265.     ENDIF
  266.  
  267. ;
  268. ; pascal OSErr UnRegisterSection(SectionHandle sectionH)
  269. ;
  270.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  271.         Macro
  272.         _UnRegisterSection
  273.             move.w              #$0206,D0
  274.             dc.w                $A82D
  275.         EndM
  276.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  277.         IMPORT_CFM_FUNCTION UnRegisterSection
  278.     ENDIF
  279.  
  280. ;
  281. ; pascal OSErr IsRegisteredSection(SectionHandle sectionH)
  282. ;
  283.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  284.         Macro
  285.         _IsRegisteredSection
  286.             move.w              #$0208,D0
  287.             dc.w                $A82D
  288.         EndM
  289.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  290.         IMPORT_CFM_FUNCTION IsRegisteredSection
  291.     ENDIF
  292.  
  293. ;
  294. ; pascal OSErr AssociateSection(SectionHandle sectionH, const FSSpec *newSectionDocument)
  295. ;
  296.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  297.         Macro
  298.         _AssociateSection
  299.             move.w              #$040C,D0
  300.             dc.w                $A82D
  301.         EndM
  302.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  303.         IMPORT_CFM_FUNCTION AssociateSection
  304.     ENDIF
  305.  
  306. ;
  307. ; pascal OSErr CreateEditionContainerFile(const FSSpec *editionFile, OSType fdCreator, ScriptCode editionFileNameScript)
  308. ;
  309.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  310.         Macro
  311.         _CreateEditionContainerFile
  312.             move.w              #$050E,D0
  313.             dc.w                $A82D
  314.         EndM
  315.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  316.         IMPORT_CFM_FUNCTION CreateEditionContainerFile
  317.     ENDIF
  318.  
  319. ;
  320. ; pascal OSErr DeleteEditionContainerFile(const FSSpec *editionFile)
  321. ;
  322.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  323.         Macro
  324.         _DeleteEditionContainerFile
  325.             move.w              #$0210,D0
  326.             dc.w                $A82D
  327.         EndM
  328.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  329.         IMPORT_CFM_FUNCTION DeleteEditionContainerFile
  330.     ENDIF
  331.  
  332. ;
  333. ; pascal OSErr OpenEdition(SectionHandle subscriberSectionH, EditionRefNum *refNum)
  334. ;
  335.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  336.         Macro
  337.         _OpenEdition
  338.             move.w              #$0412,D0
  339.             dc.w                $A82D
  340.         EndM
  341.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  342.         IMPORT_CFM_FUNCTION OpenEdition
  343.     ENDIF
  344.  
  345. ;
  346. ; pascal OSErr OpenNewEdition(SectionHandle publisherSectionH, OSType fdCreator, ConstFSSpecPtr publisherSectionDocument, EditionRefNum *refNum)
  347. ;
  348.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  349.         Macro
  350.         _OpenNewEdition
  351.             move.w              #$0814,D0
  352.             dc.w                $A82D
  353.         EndM
  354.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  355.         IMPORT_CFM_FUNCTION OpenNewEdition
  356.     ENDIF
  357.  
  358. ;
  359. ; pascal OSErr CloseEdition(EditionRefNum whichEdition, Boolean successful)
  360. ;
  361.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  362.         Macro
  363.         _CloseEdition
  364.             move.w              #$0316,D0
  365.             dc.w                $A82D
  366.         EndM
  367.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  368.         IMPORT_CFM_FUNCTION CloseEdition
  369.     ENDIF
  370.  
  371. ;
  372. ; pascal OSErr EditionHasFormat(EditionRefNum whichEdition, FormatType whichFormat, Size *formatSize)
  373. ;
  374.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  375.         Macro
  376.         _EditionHasFormat
  377.             move.w              #$0618,D0
  378.             dc.w                $A82D
  379.         EndM
  380.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  381.         IMPORT_CFM_FUNCTION EditionHasFormat
  382.     ENDIF
  383.  
  384. ;
  385. ; pascal OSErr ReadEdition(EditionRefNum whichEdition, FormatType whichFormat, void *buffPtr, Size *buffLen)
  386. ;
  387.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  388.         Macro
  389.         _ReadEdition
  390.             move.w              #$081A,D0
  391.             dc.w                $A82D
  392.         EndM
  393.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  394.         IMPORT_CFM_FUNCTION ReadEdition
  395.     ENDIF
  396.  
  397. ;
  398. ; pascal OSErr WriteEdition(EditionRefNum whichEdition, FormatType whichFormat, const void *buffPtr, Size buffLen)
  399. ;
  400.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  401.         Macro
  402.         _WriteEdition
  403.             move.w              #$081C,D0
  404.             dc.w                $A82D
  405.         EndM
  406.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  407.         IMPORT_CFM_FUNCTION WriteEdition
  408.     ENDIF
  409.  
  410. ;
  411. ; pascal OSErr GetEditionFormatMark(EditionRefNum whichEdition, FormatType whichFormat, unsigned long *currentMark)
  412. ;
  413.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  414.         Macro
  415.         _GetEditionFormatMark
  416.             move.w              #$061E,D0
  417.             dc.w                $A82D
  418.         EndM
  419.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  420.         IMPORT_CFM_FUNCTION GetEditionFormatMark
  421.     ENDIF
  422.  
  423. ;
  424. ; pascal OSErr SetEditionFormatMark(EditionRefNum whichEdition, FormatType whichFormat, unsigned long setMarkTo)
  425. ;
  426.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  427.         Macro
  428.         _SetEditionFormatMark
  429.             move.w              #$0620,D0
  430.             dc.w                $A82D
  431.         EndM
  432.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  433.         IMPORT_CFM_FUNCTION SetEditionFormatMark
  434.     ENDIF
  435.  
  436. ;
  437. ; pascal OSErr GetEditionInfo(SectionHandle sectionH, EditionInfoRecord *editionInfo)
  438. ;
  439.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  440.         Macro
  441.         _GetEditionInfo
  442.             move.w              #$0422,D0
  443.             dc.w                $A82D
  444.         EndM
  445.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  446.         IMPORT_CFM_FUNCTION GetEditionInfo
  447.     ENDIF
  448.  
  449. ;
  450. ; pascal OSErr GoToPublisherSection(const EditionContainerSpec *container)
  451. ;
  452.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  453.         Macro
  454.         _GoToPublisherSection
  455.             move.w              #$0224,D0
  456.             dc.w                $A82D
  457.         EndM
  458.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  459.         IMPORT_CFM_FUNCTION GoToPublisherSection
  460.     ENDIF
  461.  
  462. ;
  463. ; pascal OSErr GetLastEditionContainerUsed(EditionContainerSpec *container)
  464. ;
  465.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  466.         Macro
  467.         _GetLastEditionContainerUsed
  468.             move.w              #$0226,D0
  469.             dc.w                $A82D
  470.         EndM
  471.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  472.         IMPORT_CFM_FUNCTION GetLastEditionContainerUsed
  473.     ENDIF
  474.  
  475. ;
  476. ; pascal OSErr GetStandardFormats(const EditionContainerSpec *container, FormatType *previewFormat, Handle preview, Handle publisherAlias, Handle formats)
  477. ;
  478.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  479.         Macro
  480.         _GetStandardFormats
  481.             move.w              #$0A28,D0
  482.             dc.w                $A82D
  483.         EndM
  484.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  485.         IMPORT_CFM_FUNCTION GetStandardFormats
  486.     ENDIF
  487.  
  488. ;
  489. ; pascal OSErr GetEditionOpenerProc(EditionOpenerUPP *opener)
  490. ;
  491.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  492.         Macro
  493.         _GetEditionOpenerProc
  494.             move.w              #$022A,D0
  495.             dc.w                $A82D
  496.         EndM
  497.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  498.         IMPORT_CFM_FUNCTION GetEditionOpenerProc
  499.     ENDIF
  500.  
  501. ;
  502. ; pascal OSErr SetEditionOpenerProc(EditionOpenerUPP opener)
  503. ;
  504.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  505.         Macro
  506.         _SetEditionOpenerProc
  507.             move.w              #$022C,D0
  508.             dc.w                $A82D
  509.         EndM
  510.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  511.         IMPORT_CFM_FUNCTION SetEditionOpenerProc
  512.     ENDIF
  513.  
  514. ;
  515. ; pascal OSErr CallEditionOpenerProc(EditionOpenerVerb selector, EditionOpenerParamBlock *PB, EditionOpenerUPP routine)
  516. ;
  517.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  518.         Macro
  519.         _CallEditionOpenerProc
  520.             move.w              #$052E,D0
  521.             dc.w                $A82D
  522.         EndM
  523.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  524.         IMPORT_CFM_FUNCTION CallEditionOpenerProc
  525.     ENDIF
  526.  
  527. ;
  528. ; pascal OSErr CallFormatIOProc(FormatIOVerb selector, FormatIOParamBlock *PB, FormatIOUPP routine)
  529. ;
  530.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  531.         Macro
  532.         _CallFormatIOProc
  533.             move.w              #$0530,D0
  534.             dc.w                $A82D
  535.         EndM
  536.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  537.         IMPORT_CFM_FUNCTION CallFormatIOProc
  538.     ENDIF
  539.  
  540. ;
  541. ; pascal OSErr NewSubscriberDialog(NewSubscriberReply *reply)
  542. ;
  543.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  544.         Macro
  545.         _NewSubscriberDialog
  546.             move.w              #$0232,D0
  547.             dc.w                $A82D
  548.         EndM
  549.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  550.         IMPORT_CFM_FUNCTION NewSubscriberDialog
  551.     ENDIF
  552.  
  553. ;
  554. ; pascal OSErr NewSubscriberExpDialog(NewSubscriberReply *reply, Point where, short expansionDITLresID, ExpDlgHookUPP dlgHook, ExpModalFilterUPP filter, void *yourDataPtr)
  555. ;
  556.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  557.         Macro
  558.         _NewSubscriberExpDialog
  559.             move.w              #$0B34,D0
  560.             dc.w                $A82D
  561.         EndM
  562.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  563.         IMPORT_CFM_FUNCTION NewSubscriberExpDialog
  564.     ENDIF
  565.  
  566. ;
  567. ; pascal OSErr NewPublisherDialog(NewPublisherReply *reply)
  568. ;
  569.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  570.         Macro
  571.         _NewPublisherDialog
  572.             move.w              #$0236,D0
  573.             dc.w                $A82D
  574.         EndM
  575.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  576.         IMPORT_CFM_FUNCTION NewPublisherDialog
  577.     ENDIF
  578.  
  579. ;
  580. ; pascal OSErr NewPublisherExpDialog(NewPublisherReply *reply, Point where, short expansionDITLresID, ExpDlgHookUPP dlgHook, ExpModalFilterUPP filter, void *yourDataPtr)
  581. ;
  582.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  583.         Macro
  584.         _NewPublisherExpDialog
  585.             move.w              #$0B38,D0
  586.             dc.w                $A82D
  587.         EndM
  588.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  589.         IMPORT_CFM_FUNCTION NewPublisherExpDialog
  590.     ENDIF
  591.  
  592. ;
  593. ; pascal OSErr SectionOptionsDialog(SectionOptionsReply *reply)
  594. ;
  595.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  596.         Macro
  597.         _SectionOptionsDialog
  598.             move.w              #$023A,D0
  599.             dc.w                $A82D
  600.         EndM
  601.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  602.         IMPORT_CFM_FUNCTION SectionOptionsDialog
  603.     ENDIF
  604.  
  605. ;
  606. ; pascal OSErr SectionOptionsExpDialog(SectionOptionsReply *reply, Point where, short expansionDITLresID, ExpDlgHookUPP dlgHook, ExpModalFilterUPP filter, void *yourDataPtr)
  607. ;
  608.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  609.         Macro
  610.         _SectionOptionsExpDialog
  611.             move.w              #$0B3C,D0
  612.             dc.w                $A82D
  613.         EndM
  614.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  615.         IMPORT_CFM_FUNCTION SectionOptionsExpDialog
  616.     ENDIF
  617.  
  618.     ENDIF ; __EDITIONS__ 
  619.  
  620.